<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    jsonp
    <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
    <script>
      
      $.ajax({
          url:'http://localhost:6800/list?a=b',
          method:'GET',
          dataType:'jsonp',
          success:(res)=>{
            console.log(res);
          }
      })


        //浏览器执行服务器返回的js代码，即调用回调函数
        // function fn(res){
        //     console.log(res);
        // }
    </script>
    <!-- <script src="http://localhost:6800/list?callback=fn"></script> -->
</body>
</html>